package acadclockmidletpkg;

import javax.microedition.lcdui.DateField;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.TextField;

/**
 * Экран формы с настройками программы.
 * 
 * @author Kolomoets G.P.
 * @version 1.0
 */
public class SettingsScreen extends Form {
    
    //Поля-компоненты формы настроек
    protected DateField firstSemesterBegin;
    protected DateField secondSemesterBegin;
    protected TextField pairDuration;
    protected DateField firstPairBegin;
    protected DateField secondPairBegin;
    protected DateField thirdPairBegin;
    protected DateField fourthPairBegin;
    protected DateField fifthPairBegin;
    protected DateField sixthPairBegin;
    protected DateField seventhPairBegin;
    protected DateField eighthPairBegin;
    protected DateField ninethPairBegin;

    /**
     * Построение экрана формы с настройками программы.
     * @param title название экрана формы
     */
    public SettingsScreen(String title) {
        super(title);
        firstSemesterBegin = new DateField("Начало первого семестра", DateField.DATE);
        secondSemesterBegin = new DateField("Начало второго семестра", DateField.DATE);
        pairDuration = new TextField("Продолжительность пары, мин", "75", 3, 0);
        firstPairBegin = new DateField("Начало первой пары", DateField.TIME);
        secondPairBegin = new DateField("Начало второй пары", DateField.TIME);
        thirdPairBegin = new DateField("Начало третьей пары", DateField.TIME);
        fourthPairBegin = new DateField("Начало четвёртой пары", DateField.TIME);
        fifthPairBegin = new DateField("Начало пятой пары", DateField.TIME);
        sixthPairBegin = new DateField("Начало шестой пары", DateField.TIME);
        seventhPairBegin = new DateField("Начало седьмой пары", DateField.TIME);
        eighthPairBegin = new DateField("Начало восьмой пары", DateField.TIME);
        ninethPairBegin = new DateField("Начало девятой пары", DateField.TIME);
        this.append(firstSemesterBegin);
        this.append(secondSemesterBegin);
        this.append(pairDuration);
        this.append(firstPairBegin);
        this.append(secondPairBegin);
        this.append(thirdPairBegin);
        this.append(fourthPairBegin);
        this.append(fifthPairBegin);
        this.append(sixthPairBegin);
        this.append(seventhPairBegin);
        this.append(eighthPairBegin);
        this.append(ninethPairBegin);
    }

    public DateField getFirstSemesterBegin() {
        return firstSemesterBegin;
    }

    public void setFirstSemesterBegin(DateField firstSemesterBegin) {
        this.firstSemesterBegin = firstSemesterBegin;
    }

    public DateField getSecondSemesterBegin() {
        return secondSemesterBegin;
    }

    public void setSecondSemesterBegin(DateField secondSemesterBegin) {
        this.secondSemesterBegin = secondSemesterBegin;
    }

    public TextField getPairDuration() {
        return pairDuration;
    }

    public void setPairDuration(TextField pairDuration) {
        this.pairDuration = pairDuration;
    }

    public DateField getFirstPairBegin() {
        return firstPairBegin;
    }

    public void setFirstPairBegin(DateField firstPairBegin) {
        this.firstPairBegin = firstPairBegin;
    }

    public DateField getSecondPairBegin() {
        return secondPairBegin;
    }

    public void setSecondPairBegin(DateField secondPairBegin) {
        this.secondPairBegin = secondPairBegin;
    }

    public DateField getThirdPairBegin() {
        return thirdPairBegin;
    }

    public void setThirdPairBegin(DateField thirdPairBegin) {
        this.thirdPairBegin = thirdPairBegin;
    }

    public DateField getFourthPairBegin() {
        return fourthPairBegin;
    }

    public void setFourthPairBegin(DateField fourthPairBegin) {
        this.fourthPairBegin = fourthPairBegin;
    }

    public DateField getFifthPairBegin() {
        return fifthPairBegin;
    }

    public void setFifthPairBegin(DateField fifthPairBegin) {
        this.fifthPairBegin = fifthPairBegin;
    }

    public DateField getSixthPairBegin() {
        return sixthPairBegin;
    }

    public void setSixthPairBegin(DateField sixthPairBegin) {
        this.sixthPairBegin = sixthPairBegin;
    }

    public DateField getSeventhPairBegin() {
        return seventhPairBegin;
    }

    public void setSeventhPairBegin(DateField seventhPairBegin) {
        this.seventhPairBegin = seventhPairBegin;
    }

    public DateField getEighthPairBegin() {
        return eighthPairBegin;
    }

    public void setEighthPairBegin(DateField eighthPairBegin) {
        this.eighthPairBegin = eighthPairBegin;
    }

    public DateField getNinethPairBegin() {
        return ninethPairBegin;
    }

    public void setNinethPairBegin(DateField ninethPairBegin) {
        this.ninethPairBegin = ninethPairBegin;
    }
}
